package com.zyk.service;

import java.util.List;

import org.springframework.stereotype.Component;

import entity.Product;
@Component
public class ProductClientServiceFallBack implements ProductClientService {

	@Override
	public Product get(Long id) {
		return new Product(id,"id="+id+"无效","无有效数据库");
	}

	@Override
	public List<Product> list() {
		return null;
	}

	@Override
	public boolean add(Product product) {
		return false;
	}

}
